#ifndef _CLIENT_H_
#define _CLIENT_H_

#include "game.h"
#include "renderer.h"
#include <SDL/SDL.h>
#include <SDL/SDL_net.h>

class Client {
  public:
    bool _connected;
	  Game *game;
	  Renderer *r;
  
    int  _client_identifier;

    struct Server_data {
      char * host;
      int port;       
      IPaddress ip;		// server address
	    TCPsocket sd;		// socket descriptor
    };

    Server_data _server;
		void put(char *);

    Client();

    int main_client_thread();
};

#endif

